<template>
	<view class="pay">
		<view class="pay_price">
			<image src="../../static/img/pay_price.png" mode=""></image>
			<view class="pay_price_item">
				<text>报名金额</text>
				<view class="price">
					￥299.00
				</view>
			</view>
		</view>
		<view class="pay_info">
			<view class="pay_info_item">
				<view class="left item pay_info_item_t">
					2019姑婆山 <text>-亲子组(2-3人)</text>
				</view>
			</view>
	<!-- 		<view class="pay_info_item">
				<view class="left item">
					团报名称
				</view>
				<view class="item">
					姐妹霸气团
				</view>
			</view> -->
			<view class="pay_info_item">
				<view class="left item">
					报名费用
				</view>
				<view class="right item">
					￥99.00
				</view>
			</view>
		</view>
		<!-- 附加服务费用 -->
		<view class="a_service" >
			<view class="a_service_title pad">
				附加服务
			</view>
			<view class="service_contant_contant pad ">
				<view class="service_contant " v-for="(item,index) in service_list" :key="index">
					<view class="service_contant_top">
						<view class="left">
							{{item.service}}
						</view>
						<view class="right">
							{{item.price}}
						</view>
					</view>
					<view class="service_contant_bot">
						该服务包含：{{item.info}}
					</view>
				</view>
			</view>
		</view>
		<!-- 支付方式 -->
		<view class="par_awy">
			<i class="icon">&#xe621;</i>微信支付
		</view>
		<view class="bot">
			<!-- 备注 -->
			<view class="ps">
				<text>注：</text>该活动需要审核,如果通过报名成功，如果拒绝了，报名费用原路返回
			</view>
			<!-- 支付按钮 -->
			<view class="pay_button">
				<view class="left">
					合计金额：<text>￥297.00</text>
				</view>
				<view class="right" @tap="toresult">
					立即支付
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				service_list:[
					{service:'格林豪泰快捷酒店服务',price:'￥99.00',info:'房间为标准间服务，11月15日晚上06:00前准备入住，请您核实好时间...'},
					{service:'大巴服务',price:'￥99.00',info:'房间为标准间服务，11月15日晚上06:00前准备入住，请您核实好时间...'}
				]
			}
		},
		methods: {
			toresult () {
				uni.navigateTo({
					url:'/pages/index/payfail'
				})
			}
		}
	}
</script>

<style lang="less" scoped>

	.pay_price {
		width: 100%;
		height: 190upx;
		overflow: hidden;
		position: relative;
		image {
			width: 100%;
			height: 190upx;
		}
		.pay_price_item {
			position: absolute;
			top: 50%;
			left: 50%;
			text-align: center;
			transform: translate(-50%,-50%);
			text {
				display: block;
				font-size: 32upx;
				color: #FFFFFF;
				margin-bottom: 15upx;
			}
			.price {
				font-size: 36upx;
				color: #FFFFFF;
				font-weight: bold;
			}
		}
	
	}
	.pay_info {
		width: 100%;
		padding: 0 30upx;
		background-color: #FFFFFF;
		box-sizing: border-box;
		.pay_info_item {
			width: 100%;
			height: 100upx;
			border-bottom: 2upx solid #F9F9F9;
			box-sizing: border-box;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.item {
					font-size: 28upx;
					color: #333333;
					text {
						font-size: 24upx;
						color: #999;
						margin-left: 10upx;
					}
				}
			.right {
				position: relative;
				color: #8530e8;
				font-weight: bold;
			}
			.pay_info_item_t {
				font-weight: bold;
			}
		}
		.pay_info_item:last-child {
			border-bottom: 0;
		}
	}
	.par_awy {
			width: 100%;
			height: 90upx;
			background-color: #FFFFFF;
			padding: 0 30upx;
			box-sizing: border-box;
			font-size: 28upx;
			color: #333333;
			line-height: 90upx;
			.icon {
				font-size: 28upx;
				line-height: 90upx;
				margin-right: 10upx;
				color: #007AFF;
			}
		}
	.bot {
		position: fixed;
		bottom: 0;
		left: 0;
	}
	.pay_button {
		width: 100%;
		height: 100upx;
		background-color: #FFFFFF;
		display: flex;
		.left {
			width: 430upx;
			height: 100%;
			border-top: 2upx solid #e1e1e1;
			box-sizing: border-box;
			padding-left: 30upx;
			font-size: 28upx;
			color: #999;
			line-height: 100upx;
			text {
				font-size: 28upx;
				color: #8938d3;
				font-weight: bold;
			}
		}
		.right {
			flex: 1;
			height: 100%;
			background: linear-gradient(to right,#8838d2 0%,#bb78f9 100%);
			font-size: 32upx;
			color: #FFFFFF;
			text-align: center;
			line-height: 100upx;
		}
	}
		// 附加服务费
		.a_service {
			margin-bottom: 10upx;
			.a_service_title {
				width: 100%;
				height: 66upx;
				background-color: #F9F9F9;
				color: #999999;
				font-size: 24upx;
				line-height: 66upx;
			}
			.service_contant_contant {
				background-color: #FFFFFF;
			}
			.service_contant {
				padding: 30upx 0;
				box-sizing: border-box;
				border-bottom: 2upx solid #e1e1e1;
				background-color: #FFFFFF;
				.service_contant_top {
					display: flex;
					justify-content: space-between;
					.left {
						font-size: 28upx;
						color: #333333;
					}
					.right {
						font-size: 28upx;
						font-weight: bold;
						color: #8530e8;
					}
				}
				.service_contant_bot {
					margin-top: 10upx;
					font-size: 24upx;
					color: #999999;
					line-height: 40upx;
				}
			}
			.service_contant:last-child {
				border-bottom: 0;
			}
		}
	.ps {
		width: 100%;
		// height: 86upx;
		padding: 30upx;
		box-sizing: border-box;
		font-size: 24upx;
		background-color: #fbf0e9;
		color: #999;
		line-height: 40upx;
		text {
			color: #cd090b;
		}
	}
	.pay {
		position: relative;
		padding-bottom: 100upx;
	}
	.pad {
		padding: 0 30upx;
		box-sizing: border-box;
	}
</style>
<style>
	page {
		background-color: #f9f9f9;
	}
</style>
